<div data-ng-include="'/themes/adminLTE/unl_data/pages/constant/header.html'" data-ng-controller="HeaderController">
</div>
<div class="wrapper">
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
   
      <!-- Content Header (Page header) -->
      <section class="content-header">
        <h1><a href="#/matchmgmt">返回比赛管理</a>
           比赛(<a href="#/matchmgmt">{{matchname}}</a>)选手管理
          <small>在这里可以管理比赛选手的详细信息</small>
        </h1>
        <ol class="breadcrumb">
			<li><a href="#/main"><i class="fa fa-home"></i></a></li>
			<li><i class="fa fa-wrench"></i> 管理</li>
			<li class="active"><i class="fa fa-group"></i> 比赛选手管理</li>
        </ol>
      </section>

    <!-- Main content -->
<section class="content row">
<!-- /.content -->
<div class="col-xs-12">
          <div class="box">
            <div class="box-header">
              <h3 class="box-title">比赛选手列表</h3>

              <div class="box-tools">
                <div class="btn-group">
                      <button type="button" class="btn btn-success btn-flat btn-sm" data-ng-click="openModal('addmatchplayer',{'matchid':matchid,'matchname':matchname})" style="{{ (role == 'admin' || role == 'referee') ? '' : 'display:none'}}">+添加比赛选手</button>
                      
				</div>
              </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body table-responsive no-padding">
              <table class="table table-hover table-striped">
                <tbody><tr>
                  <th>id</th>
                  <th>比赛id</th>
				  <th>比赛名字</th>
				  <th>用户名</th>
				  <th>名字</th>
                  <th>操作</th>
                </tr>
                <tr data-ng-repeat="(x,y) in matchplayerdata">
					<td>{{x}}</td>
					<td>{{y.matchid}}</td>
					<td>{{y.matchname}}</td>
					<td>{{y.username}}</td>
					<td>{{y.name}}</td>
					<td>
                      <button type="button" class="btn btn-default btn-flat btn-xs" data-ng-click="openModal('editmatchplayer', {'id':y.id,'matchid':matchid,'matchname':matchname});" style="{{ (role == 'admin' || role == 'referee') ? '' : 'display:none'}}"><i class="fa fa-edit"></i> 编辑</button>
                      <button type="button" class="btn btn-danger btn-flat btn-xs" data-ng-click="deletematchplayer( y.id )" style="{{ (role == 'admin' || role == 'referee') ? '' : 'display:none'}}"> <i class="fa fa-trash-o"></i></button>
					</td>
                </tr>
              </tbody></table>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
<!-- /.content -->
</section>
  </div>
  <!-- /.content-wrapper -->
  
  
  <!-- Main Footer -->
  <!-- <div data-ng-include="'/themes/adminLTE/unl_data/pages/constant/footer.html'"> -->
</div>
<!-- ./wrapper -->
<!-- AdminLTE App -->
<link rel="stylesheet" href="/themes/adminLTE/dist/css/skins/skin-blue.min.css">
<script src="/themes/adminLTE/dist/js/app.js"></script>
